import Cookies from 'js-cookie'

const TokenKey = 'loginToken'
const ShopIdKey = 'ShopId'

export function getToken() {
  var token = Cookies.get(TokenKey)
  return token
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getShopId() {
  var shopid = Cookies.get(ShopIdKey)
  return shopid
}

export function setShopId(shopId) {
  return Cookies.set(ShopIdKey, shopId)
}

export function removeShopId() {
  return Cookies.remove(ShopIdKey)
}
